<template>
  <flex-container class="home">
    <project-item @toDetail="toDetail" />
    <project-item @toDetail="toDetail" />
    <project-item @toDetail="toDetail" />
    <project-item @toDetail="toDetail" />
    <project-item @toDetail="toDetail" />
    <project-item @toDetail="toDetail" />
    <project-item @toDetail="toDetail" />
    <project-item @toDetail="toDetail" />
    <project-item @toDetail="toDetail" />
    <project-item @toDetail="toDetail" />
    <project-item @toDetail="toDetail" />
    <project-item @toDetail="toDetail" />
    <project-item @toDetail="toDetail" />
    <project-item @toDetail="toDetail" />
    <project-item @toDetail="toDetail" />
    <project-item @toDetail="toDetail" />
    <project-item @toDetail="toDetail" />
    <project-item @toDetail="toDetail" />
  </flex-container>
</template>

<script setup lang="ts">
import FlexContainer from '../../components/layout/FlexContainer.vue'
import ProjectItem from '../../components/Project/ProjectItem.vue'
import { useRouter } from 'vue-router'

const router = useRouter()
const toDetail = () => {
  router.push('/project-detail')
}
</script>

<style scoped lang="scss"></style>
